<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="renderer" content="webkit" />
		<meta name="robots" content="index, follow" />
		<title>提交报修单</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<meta name="author" content="order by website" />
		<script type="text/javascript" src="__XIAOHE__/js/jquery.min.js"></script>
		
		{include file="./index/public/share" /}
		<script src="__XIAOHE__/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
		 crossorigin="anonymous"></script>
		<script src="__XIAOHE__/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/css/bootstrap.min.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/css/style.css" />
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/css/swiper.min.css" />


		<!-- 引入样式文件 -->
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/yuye/index.css">
		<!-- 引入 Vue 和 Vant 的 JS 文件XiaoHe QQ496631085  -->
		<script src="__XIAOHE__/yuye/vue.min.js"></script>
		<script src="__XIAOHE__/yuye/vant.min.js"></script>

		 <style type="text/css">
	        .toolbar {
	            border: 1px solid #ccc;

	        }
	        .text {
	            border: 1px solid #ccc;
	            height: 400px;
	        }
	    </style>
	</head>
	<body>
		<div class="row">
			<div class="col-xs-12" style="padding: 0;">
				<div class="Suggestions1" style="background-image: url(__XIAOHE__/images/Suggestions1.jpg);">
					<div class="Repair1">
						<div class="Repair1a">
							<img src="__XIAOHE__/images/Repair1.jpg" >
						</div>
						<div class="Repair1b">
							<input type="text" id="name" value="{$wxuser.name}"  placeholder="报修人员"/>
						</div>
					</div>
					
					<div class="Repair1">
						<div class="Repair1a">
							<img src="__XIAOHE__/images/Repair2.jpg" >
						</div>
						<div class="Repair1b">
							<input type="text" id="tel" value="{$wxuser.tel}" placeholder="联系电话"/>
						</div>
					</div>
					<div class="Repair1">
						<div class="Repair1a">
							<img src="__XIAOHE__/images/Repair3.jpg" >
						</div>
						<div class="Repair1b">
							<input type="text" id="ltdtel" value="{$wxuser.ltdtel}" placeholder="公司电话"/>
						</div>
					</div>
					<div class="Repair1">
						<div class="Repair1a">
							<img src="__XIAOHE__/images/Repair4.jpg" >
						</div>
						<div class="Repair1b">
							<input type="text" id="room" value="{$wxuser.room}" placeholder="房间号"/>
						</div>
					</div>

				<!-- 	<div class="Repair2">
						<div class="Repair1a">
							<img class="Repair1aimg" src="__XIAOHE__/images/Repair5.jpg" >报修内容
						</div>
						<div class="Repair1c">
							<textarea rows="" cols="" id="content" placeholder="例:窗户关不上"></textarea>
						</div>
					</div> -->

				
						<div id="div1">
						    <p>请输入报修内容</p>
						</div>

						<script src="https://unpkg.com/wangeditor@3.1.1/release/wangEditor.min.js"></script>  

						<script type="text/javascript">
						    var E = window.wangEditor
						    var editor = new E('#div1')

						    // 自定义菜单配置
						    editor.customConfig.menus = [
						          'head',  // 标题
							    'bold',  // 粗体
							    'fontSize',  // 字号
							    'fontName',  // 字体
							    // 'italic',  // 斜体
							    'underline',  // 下划线
							    // 'strikeThrough',  // 删除线
							    'foreColor',  // 文字颜色
							    // 'backColor',  // 背景颜色
							    'link',  // 插入链接
							    // 'list',  // 列表
							    'justify',  // 对齐方式
							    // 'quote',  // 引用
							    // 'emoticon',  // 表情
							    'image',  // 插入图片
							    // 'table',  // 表格
							    // 'video',  // 插入视频
							    // 'code',  // 插入代码
							    'undo',  // 撤销
							    // 'redo'  // 重复
						        
						    ]

						    // 配置服务器端地址
						    editor.customConfig.uploadImgServer = '/api/yuye/upload'

						    // 进行下文提到的其他配置
						    // ……
						    // ……
						    // ……

						    editor.create()
						</script>


					<div class="Suggestions1e">
						<button id="xiaohe" type="button">提交报修单</button>
					</div>


				

				</div>
			</div>
		</div>
			<script type="text/javascript">
				$("#xiaohe").click(function(){
				    $.post("/api/yuye/baoxiu",{
						name:$("#name").val(),
						tel:$("#tel").val(),
						ltdtel:$("#ltdtel").val(),
						room:$("#room").val(),
						content:$("#content").val(),
					},function(data,status){
				        // alert("Data: " + data + "nStatus: " + status);
				        if(data.code>0){
				        	alert('提交成功');
				        	window.close();
				        }else{
				        	alert('提交失败：'+data.msg);
				        }
				    });
				});
				
			</script>
	</body>
</html>
